package Spackage;

public class ThreadExample
{
    public static void main(String[] args)
    {
        Rabbit rabbit;
        rabbit = new Rabbit(1000, "兔子", 4); // 新建线程rabbit
        Tortoise tortoise;
        tortoise = new Tortoise(500, "乌龟", 10); // 新建线程tortoise
        tortoise.start(); // 启动线程tortoise
        rabbit.start(); // 启动线程rabbit
    }
}
